#include "utils.hpp"
#include <fstream>

std::string wrap_color(const std::string& msg, const std::string& color) {
    return color + msg + COLOR_RESET;
}

void log_to_file(const std::string& msg) {
    std::ofstream log("chat_log.txt", std::ios::app);
    if (log.is_open()) {
        log << msg;
    }
}

